package com.suse.service.view.edu.service;

import com.suse.common.config.response.R;
import com.suse.service.view.edu.model.entity.CourseCollect;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程收藏 服务类
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-16
 */
public interface CourseCollectService extends IService<CourseCollect> {

    /**
     * 收藏课程
     * @param courseId 课程ID
     * @return R
     */
    R saveCollect(String courseId,String userId);

    /**
     * 取消收藏课程
     * @param courseId 课程ID
     * @param userId 用户ID
     * @return R
     */
    R removeCollect(String courseId, String userId);

}
